#计科1814-0301181421-徐明义
list3=["张三","李四","王五","马六","吴七"]
print("姓名列表：")
for n in list3:
    print(n)
print("输入一个姓名: ")
a = input()
if a in list3:
    print("%s是在列表中的下表是%d"%(a,list3.index((a),0, len(list3))))
else:
    print("查询的姓名不在列表中")
